<?php /* Smarty version 2.6.20, created on 2009-03-29 02:48:22
         compiled from admin/cad_prerequisito.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'load_module', 'admin/cad_prerequisito.html', 1, false),)), $this); ?>
<?php echo smarty_function_load_module(array('name' => 'Find','url' => ($this->_tpl_vars['site']->relroot_path)."admin/find.php",'assign' => 'mod_find'), $this);?>

<form name="cad_admin" method="post" action="?action=cadastrar">
<center>
<table width="383" border="0" align="center" cellpadding="3">
	<tr>
		<td colspan="2" align="center" valign="top"><span class="style1"><strong>Cadastrar Pré-Requisito</strong></span></td>
	</tr>
	<tr><td colspan="2" align="left">&nbsp;</td></tr>


    <tr>
		<td align="left">Disciplina</td>
		<td colspan="3" align="left"><select name="disciplina" >
             <option> Selecione a Disciplina </option>

        <?php $_from = $this->_tpl_vars['mod_find']->find_alldisciplinas(); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['dep_loop'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['dep_loop']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['item']):
        $this->_foreach['dep_loop']['iteration']++;
?>
            <option value="<?php echo $this->_tpl_vars['item']['id']; ?>
"><?php echo $this->_tpl_vars['item']['nome']; ?>
</option>
        <?php endforeach; endif; unset($_from); ?>
        </select></td>
	</tr>

    <tr>
		<td align="left">Disciplina Pré-Requisito</td>
		<td colspan="3" align="left"><select name="prerequisito" >
             <option> Selecione uma disciplina </option>

        <?php $_from = $this->_tpl_vars['mod_find']->find_alldisciplinas(); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['dep_loop'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['dep_loop']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['item']):
        $this->_foreach['dep_loop']['iteration']++;
?>
            <option value="<?php echo $this->_tpl_vars['item']['id']; ?>
"><?php echo $this->_tpl_vars['item']['nome']; ?>
</option>
        <?php endforeach; endif; unset($_from); ?>
        </select></td>
	</tr>

	

    

	<tr>
		<td colspan="2" align="left">&nbsp;</td>
	</tr>
    
	<tr>
		<td colspan="2" align="right"><input name="Reset" type="reset" id="Reset" value="Limpar" />
		<input name="Submit" type="submit" id="Submit" value="Avan&ccedil;ar" /></td>
	</tr>
</table>
</center>
</form>